.class public Lcom/kuguo/ad/l;
.super Ljava/lang/Object;


# instance fields
.field a:Landroid/view/View$OnClickListener;

.field private b:I

.field private c:Lcom/kuguo/ad/o;

.field private d:Lcom/kuguo/ad/i;

.field private e:Landroid/app/Activity;

.field private f:Lcom/kuguo/ad/x;

.field private g:Z

.field private h:Landroid/os/Handler;


# direct methods
.method public constructor <init>(Landroid/app/Activity;Lcom/kuguo/ad/o;Z)V
    .locals 7

    const/4 v6, 0x0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput v6, p0, Lcom/kuguo/ad/l;->b:I

    new-instance v0, Lcom/kuguo/ad/ad;

    invoke-direct {v0, p0}, Lcom/kuguo/ad/ad;-><init>(Lcom/kuguo/ad/l;)V

    iput-object v0, p0, Lcom/kuguo/ad/l;->h:Landroid/os/Handler;

    new-instance v0, Lcom/kuguo/ad/aa;

    invoke-direct {v0, p0}, Lcom/kuguo/ad/aa;-><init>(Lcom/kuguo/ad/l;)V

    iput-object v0, p0, Lcom/kuguo/ad/l;->a:Landroid/view/View$OnClickListener;

    iput-object p1, p0, Lcom/kuguo/ad/l;->e:Landroid/app/Activity;

    iput-object p2, p0, Lcom/kuguo/ad/l;->c:Lcom/kuguo/ad/o;

    iput-boolean p3, p0, Lcom/kuguo/ad/l;->g:Z

    new-instance v0, Lcom/kuguo/ad/x;

    iget-object v1, p0, Lcom/kuguo/ad/l;->h:Landroid/os/Handler;

    invoke-direct {v0, p1, p2, v1}, Lcom/kuguo/ad/x;-><init>(Landroid/content/Context;Lcom/kuguo/ad/o;Landroid/os/Handler;)V

    iput-object v0, p0, Lcom/kuguo/ad/l;->f:Lcom/kuguo/ad/x;

    new-instance v0, Lcom/kuguo/a/d;

    iget-object v1, p2, Lcom/kuguo/ad/o;->q:Ljava/lang/String;

    const-string v2, "icon.png"

    iget v3, p2, Lcom/kuguo/ad/o;->h:I

    invoke-static {p1, v2, v3}, Lcom/kuguo/ad/a;->b(Landroid/content/Context;Ljava/lang/String;I)Ljava/io/File;

    move-result-object v2

    invoke-direct {v0, v1, v2, v6}, Lcom/kuguo/a/d;-><init>(Ljava/lang/String;Ljava/io/File;I)V

    const/4 v1, -0x1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/kuguo/a/d;->a(Ljava/lang/Object;)V

    iget-object v1, p0, Lcom/kuguo/ad/l;->f:Lcom/kuguo/ad/x;

    invoke-static {p1, v0, v1}, Lcom/kuguo/ad/r;->a(Landroid/content/Context;Lcom/kuguo/a/d;Lcom/kuguo/a/c;)V

    iget-object v0, p2, Lcom/kuguo/ad/o;->r:Ljava/lang/String;

    const-string v1, ";"

    invoke-static {v0, v1}, Lcom/kuguo/ad/a;->a(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    array-length v1, v0

    iput v1, p0, Lcom/kuguo/ad/l;->b:I

    :cond_0
    invoke-direct {p0}, Lcom/kuguo/ad/l;->b()V

    move v1, v6

    :goto_0
    iget v2, p0, Lcom/kuguo/ad/l;->b:I

    if-ge v1, v2, :cond_1

    new-instance v2, Lcom/kuguo/a/d;

    aget-object v3, v0, v1

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, ".png"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    iget v5, p2, Lcom/kuguo/ad/o;->h:I

    invoke-static {p1, v4, v5}, Lcom/kuguo/ad/a;->b(Landroid/content/Context;Ljava/lang/String;I)Ljava/io/File;

    move-result-object v4

    invoke-direct {v2, v3, v4, v6}, Lcom/kuguo/a/d;-><init>(Ljava/lang/String;Ljava/io/File;I)V

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/kuguo/a/d;->a(Ljava/lang/Object;)V

    iget-object v3, p0, Lcom/kuguo/ad/l;->e:Landroid/app/Activity;

    iget-object v4, p0, Lcom/kuguo/ad/l;->f:Lcom/kuguo/ad/x;

    invoke-static {v3, v2, v4}, Lcom/kuguo/ad/r;->a(Landroid/content/Context;Lcom/kuguo/a/d;Lcom/kuguo/a/c;)V

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    return-void
.end method

.method static synthetic a(Lcom/kuguo/ad/l;)Landroid/app/Activity;
    .locals 1

    iget-object v0, p0, Lcom/kuguo/ad/l;->e:Landroid/app/Activity;

    return-object v0
.end method

.method private a(Ljava/lang/String;)Ljava/util/Map;
    .locals 8

    const/4 v7, 0x0

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    const-string v1, "|"

    invoke-static {p1, v1}, Lcom/kuguo/ad/a;->a(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_1

    array-length v2, v1

    move v3, v7

    :goto_0
    if-ge v3, v2, :cond_1

    aget-object v4, v1, v3

    const-string v5, "="

    invoke-static {v4, v5}, Lcom/kuguo/ad/a;->a(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v4

    if-eqz v4, :cond_0

    array-length v5, v4

    const/4 v6, 0x2

    if-ne v5, v6, :cond_0

    aget-object v5, v4, v7

    const/4 v6, 0x1

    aget-object v4, v4, v6

    invoke-interface {v0, v5, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_0
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    :cond_1
    return-object v0
.end method

.method static synthetic b(Lcom/kuguo/ad/l;)Lcom/kuguo/ad/i;
    .locals 1

    iget-object v0, p0, Lcom/kuguo/ad/l;->d:Lcom/kuguo/ad/i;

    return-object v0
.end method

.method private b()V
    .locals 3

    new-instance v0, Lcom/kuguo/ad/i;

    iget-object v1, p0, Lcom/kuguo/ad/l;->e:Landroid/app/Activity;

    iget-object v2, p0, Lcom/kuguo/ad/l;->c:Lcom/kuguo/ad/o;

    iget v2, v2, Lcom/kuguo/ad/o;->D:I

    invoke-direct {v0, v1, v2}, Lcom/kuguo/ad/i;-><init>(Landroid/content/Context;I)V

    iput-object v0, p0, Lcom/kuguo/ad/l;->d:Lcom/kuguo/ad/i;

    iget-object v0, p0, Lcom/kuguo/ad/l;->d:Lcom/kuguo/ad/i;

    iget v1, p0, Lcom/kuguo/ad/l;->b:I

    invoke-virtual {v0, v1}, Lcom/kuguo/ad/i;->a(I)V

    iget-object v0, p0, Lcom/kuguo/ad/l;->d:Lcom/kuguo/ad/i;

    iget-object v1, p0, Lcom/kuguo/ad/l;->c:Lcom/kuguo/ad/o;

    iget-object v1, v1, Lcom/kuguo/ad/o;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/kuguo/ad/i;->d(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/kuguo/ad/l;->d:Lcom/kuguo/ad/i;

    iget-object v1, p0, Lcom/kuguo/ad/l;->c:Lcom/kuguo/ad/o;

    iget-object v1, v1, Lcom/kuguo/ad/o;->m:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/kuguo/ad/i;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/kuguo/ad/l;->d:Lcom/kuguo/ad/i;

    iget-object v1, p0, Lcom/kuguo/ad/l;->c:Lcom/kuguo/ad/o;

    iget-object v1, v1, Lcom/kuguo/ad/o;->G:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/kuguo/ad/i;->e(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/kuguo/ad/l;->d:Lcom/kuguo/ad/i;

    iget-object v1, p0, Lcom/kuguo/ad/l;->c:Lcom/kuguo/ad/o;

    iget-object v1, v1, Lcom/kuguo/ad/o;->x:Ljava/lang/String;

    invoke-direct {p0, v1}, Lcom/kuguo/ad/l;->a(Ljava/lang/String;)Ljava/util/Map;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/kuguo/ad/i;->a(Ljava/util/Map;)V

    iget-object v0, p0, Lcom/kuguo/ad/l;->d:Lcom/kuguo/ad/i;

    iget-object v1, p0, Lcom/kuguo/ad/l;->a:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Lcom/kuguo/ad/i;->a(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/kuguo/ad/l;->c:Lcom/kuguo/ad/o;

    iget-byte v0, v0, Lcom/kuguo/ad/o;->e:B

    packed-switch v0, :pswitch_data_0

    :goto_0
    :pswitch_0
    return-void

    :pswitch_1
    iget-object v0, p0, Lcom/kuguo/ad/l;->d:Lcom/kuguo/ad/i;

    iget-object v1, p0, Lcom/kuguo/ad/l;->c:Lcom/kuguo/ad/o;

    iget-object v1, v1, Lcom/kuguo/ad/o;->n:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/kuguo/ad/i;->b(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/kuguo/ad/l;->d:Lcom/kuguo/ad/i;

    iget-object v1, p0, Lcom/kuguo/ad/l;->c:Lcom/kuguo/ad/o;

    iget-object v1, v1, Lcom/kuguo/ad/o;->p:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/kuguo/ad/i;->c(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/kuguo/ad/l;->d:Lcom/kuguo/ad/i;

    iget-object v1, p0, Lcom/kuguo/ad/l;->c:Lcom/kuguo/ad/o;

    iget v1, v1, Lcom/kuguo/ad/o;->o:I

    int-to-float v1, v1

    invoke-virtual {v0, v1}, Lcom/kuguo/ad/i;->a(F)V

    goto :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/kuguo/ad/l;->d:Lcom/kuguo/ad/i;

    invoke-virtual {v0}, Lcom/kuguo/ad/i;->a()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_2
        :pswitch_1
        :pswitch_2
        :pswitch_1
        :pswitch_2
        :pswitch_1
        :pswitch_0
        :pswitch_1
        :pswitch_0
        :pswitch_2
        :pswitch_2
    .end packed-switch
.end method

.method static synthetic c(Lcom/kuguo/ad/l;)I
    .locals 1

    iget v0, p0, Lcom/kuguo/ad/l;->b:I

    return v0
.end method

.method private c()Z
    .locals 4

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/kuguo/ad/l;->e:Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/content/pm/PackageManager;->getInstalledPackages(I)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Landroid/content/pm/PackageInfo;

    iget-object v1, p0, Landroid/content/pm/PackageInfo;->packageName:Ljava/lang/String;

    const-string v2, "com.qihoo360.mobilesafe"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_1
    move v0, v3

    goto :goto_0
.end method

.method static synthetic d(Lcom/kuguo/ad/l;)Lcom/kuguo/ad/o;
    .locals 1

    iget-object v0, p0, Lcom/kuguo/ad/l;->c:Lcom/kuguo/ad/o;

    return-object v0
.end method

.method static synthetic e(Lcom/kuguo/ad/l;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/kuguo/ad/l;->g:Z

    return v0
.end method

.method static synthetic f(Lcom/kuguo/ad/l;)Z
    .locals 1

    invoke-direct {p0}, Lcom/kuguo/ad/l;->c()Z

    move-result v0

    return v0
.end method


# virtual methods
.method protected a()V
    .locals 3

    const/4 v1, -0x1

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v0, v1, v1}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iget-object v1, p0, Lcom/kuguo/ad/l;->e:Landroid/app/Activity;

    iget-object v2, p0, Lcom/kuguo/ad/l;->d:Lcom/kuguo/ad/i;

    invoke-virtual {v1, v2, v0}, Landroid/app/Activity;->setContentView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method
